package com.daka.vo.response;

import com.daka.entity.User;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by yangx
 * CreateTime: 2016/12/12 19:44
 */
@Data
@ToString
public class TeamUserVo {

    private List<DonationSimpVo> list;

    private Integer count;

    private BigDecimal total;

    private Integer unCount;

    private String teamName;

    public static TeamUserVo build(List<DonationSimpVo> list,BigDecimal total,Integer count,Integer unCount,String teamName) {
        TeamUserVo teamUserVo = new TeamUserVo();
        teamUserVo.setCount(count);
        teamUserVo.setList(list);
        teamUserVo.setTotal(total.divide(BigDecimal.valueOf(100)));
        teamUserVo.setUnCount(unCount);
        teamUserVo.setTeamName(teamName);
        return teamUserVo;
    }
}
